
#import "KLSingleton.h"

extern NSString* const APP_VERSION;
extern NSString* const APP_BULID;
extern NSString* const APP_DISPLAY_NAME;
extern NSString* const APP_FILE_NAME;



#define HAS_DIFF_VER(_ver_)  ([APP_VERSION compare:_ver_] != NSOrderedSame)
#define HAS_LARGER_VER(_ver_)  ([APP_VERSION compare:_ver_] == NSOrderedAscending)


@interface KLVersion : NSObject

KLDEC_SINGLETON( KLVersion )

@property (nonatomic, readonly) NSUInteger	major;
@property (nonatomic, readonly) NSUInteger	minor;
@property (nonatomic, readonly) NSUInteger	tiny;
@property (nonatomic, readonly) NSString *	pre;

-(BOOL)checkHasNewVersion:(NSString *)newVersion;
@end
